package Initialize;

public class Child extends Parent{
    private String status = "sleep";

    public Child(String state, String status) {
        super(state);
        System.out.println("子类构造器开始：" + this.status);
        this.status = status;
        System.out.println("子类构造器结束：" + this.status);
    }

    public Child() {
        System.out.println("子类构造器开始：" + this.status);
        System.out.println("子类构造器结束：" + this.status);
    }

    public Child(String status) {
        this();
        this.status = status;
        System.out.println("构造器：" + this.status);
    }
}
